package klimuts.periodicals.admin.actions;

import java.util.LinkedList;

import klimuts.periodicals.data.DataSource;
import klimuts.periodicals.user.User;

import com.opensymphony.xwork2.ActionSupport;

/**
 *  Action prepare users collection for users page and show this page after all.
 * @author Siarhei Klimuts
 *
 */
public class ShowUsers extends ActionSupport{
	private LinkedList<User> users;
	
	public String execute() throws Exception{
		users=DataSource.getUsers();
		return "success";
	}

	public LinkedList<User> getUsers() {
		return users;
	}

	public void setUsers(LinkedList<User> users) {
		this.users = users;
	}

}
